package top.scsoul.pas.service;

import org.springframework.data.domain.Page;
import top.scsoul.pas.entity.Clazz;
import top.scsoul.pas.entity.User;

import java.util.List;

public interface UserService {
    User login(String username);

    List<User> getTeachers();

    Page<User> listTeachers(int currentPage, int pageSize);

    boolean existsUserByLoginName(String loginName);

    void saveUser(User user);

    void deleteUserById(Long id);

    void changeState(Long id, String state);

    User getUserById(Long id);

    void updateUser(User user);

    boolean isAdmin(Long id);

    List<Clazz> getSelfClazz(Long id);

}
